(function () {

    packager('app.components.sidebar');

    app.components.sidebar = new function () {

        var exports = {};

        exports.init = function () {

            exports.actions.initSidebar();
        };

        exports.actions = {};

        exports.actions.initSidebar = initSidebar;

        return exports;
    };


	function initSidebar() {

		var $list = $('.page-sidebar-menu');

		// click to mark the current tab
		$list.on('click', 'li:not(.heading)', function () {
			$list.find('li').removeClass('active');
			$(this).addClass('active');
		});
	}

})();